import { fetch, query } from 'api'
/**==========================
 *          公司列表
 ==========================*/
let _list = type => {
  let param = {
    "Share_Type_list": {
      "order": "Sort",
      "IsDelete": false,
      "field": "ID,TypeName,TypeImg,TypeDesc",
      "Share_Company_list": {
        "TypeID": "from#Share_Type_list.ID",
        "IsDelete": false,
        "field": "ID,Name"
      }
    }
  }
  return query(param)
}
// 详细
let _detail = ID => {
  let param = {
    "Share_Company": {
      ID
    }
  }
  return query(param)
}
export {
  _list,
  _detail
}